package com.jyxd.web.data.basic;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;


@ApiModel("页码数据保存")
@Entity
@Table(name = "table_page_preserve")
@Data
public class PagePreserve {

    /**
     * 序列
     */
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Id
    @Column(name = "id", length = 32, nullable = false)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
    private String id;

    @ApiModelProperty("患者id")
    @Column(name = "patient_id")
    private String patientId;

    @ApiModelProperty("保存页码对应的页面")
    @Column(name = "form_key")
    private String formKey;

    @ApiModelProperty("页面起始页码")
    @Column(name = "page_num")
    private String pageNum;

    @ApiModelProperty("状态")
    @Column(name = "status")
    private Integer status;

    @ApiModelProperty("创建时间")
    @Column(name = "create_time")
    private Date createTime;
}
